#include "EWAPrjFragmentUI.hpp"

#include "EWAColorSet.hpp"

namespace Eyer
{
    int EWAPrjFragmentUI::OnDraw()
    {
        RemoveAllUIGraph();
        EyerSmartPtr<EWAUIGraphRect> rect(new EWAUIGraphRect());
        rect->xy.SetX(1);
        rect->xy.SetY(0);
        rect->wh = wh;
        rect->wh.width(wh.width() - 2);
        rect->background = EWAColorSet::TRACK_HEADER_MARKLINE_AUDIO_BG;
        rect->border = 0;
        rect->rounding = 0;
        AddUIGraph(rect);
        return 0;
    }

    EWAPrjFragmentUI::EWAPrjFragmentUI(EWAUILayoutParams _width, EWAUILayoutParams _height)
        : EWAUIWidget(_width, _height)
    {
        SetWidgetName("EWAPrjFragmentUI");
    }

    EWAPrjFragmentUI::~EWAPrjFragmentUI()
    {

    }
}